package com.xy.mvvmdemo.view

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.LinearLayout
import com.xy.mvvmdemo.R

/**
 * @ClassName CustomerLinearLayout
 * @Author xy
 * @Date 2021/7/21 15:08
 * @Description TODO
 */
class CustomerLinearLayout :LinearLayout {
    constructor(context: Context?) : super(context,null)
    constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs,0)
    constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
        context,
        attrs,
        defStyleAttr
    ){
        LayoutInflater.from(context).inflate(R.layout.one_fragment,this)
        context?.obtainStyledAttributes(attrs,R.styleable.ActionBar)
    }
}